package com.len.mapper;

import com.len.base.BaseMapper;
import com.len.entity.SysRole;
import com.len.entity.TProductNotice;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ProductMapper extends BaseMapper<TProductNotice,Long> {
    int delectByOrderNo(Long orderNo);
    @Select("select * from t_product_notice order by notice_time desc ")
    List<TProductNotice> selectListByPage(TProductNotice tProductNotice);

    @Select("select * from t_product_notice where order_no = #{orderNo} order by notice_time desc ")
    List<TProductNotice> selectListByOrderNo(String orderNo);
}
